package aop2;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

/**
 * @author chaird
 * @create 2022-09-04 1:50
 */
@Aspect
public class SpecialAspects {

    @Pointcut("@annotation(aop2.AspAnn)")
    public void pointCut1(){};

    @Before("pointCut1()")
    public void start(){
        System.out.println("AspAnn start...");
    }

    @After("pointCut1()")
    public void end(){
        System.out.println("AspAnn end...");
    }
}
